/*
**提供登录数据模拟
**制作人：steven
**制作日期：2019.11.12
*/

export default [
  {
    url: '/user/verify',
    type: 'get',
    response: config => {
      const loginInfo = config.query
      if (loginInfo.password === '111111') {
        return {
          code: 0,
          message: '获取用户成功!',
          data: {
            code: loginInfo.code,
            name: `管理员${loginInfo.code}`,
            token: `Token${loginInfo.code}`
          }
        }
      } else {
        return {
          code: 50008,
          message: '密码错误!'
        }
      }
    }
  }
]
